package com.xyz.basesdk.utils;

import android.util.Log;

import com.xyz.basesdk.BuildConfig;

/**
 * Created by mac
 * on 2017/10/18.
 */

public class MPLog {

    private static boolean isDebug = BuildConfig.DEBUG;

    public static void i(String tag, String msg) {
        if (isDebug) {
            Log.i(tag, msg);
        }
    }

    public static void e(String tag, String msg, Throwable t) {
        if (isDebug) {
            Log.e(tag, msg, t);
        }
    }

    public static void w(String tag, String msg) {
        if (isDebug) {
            Log.w(tag, msg);
        }
    }
}
